/*
** my.h for mysh in /home/nadali_t//local/svn/tek2ed/minishell1
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Thu Nov  8 12:23:22 2012 thomas nadalie
** Last update Thu Nov  8 12:24:34 2012 thomas nadalie
*/

#ifndef		__MY_H__
#define		__MY_H__

#include	<stdio.h>

typedef struct	s_list
{
  int		stop;
  int		end;
}		t_list;

void		my_putchar(char c);
void		my_putstr(char *str);
int		my_strlen(char *str);
void		my_put_nbr(int nb);
char            *my_strcpy(char *dest, char *src);
char		**make_read(char **env);
char		**make_env(char **env);
char            *epur_str(char *str);
int             my_wordlen(char *str, int i);
int             count_word(char *str);
char            *copy_word(char *str, int i);
char            **my_str_to_wordtab(char *str);
int             my_pathlen(char *str, int i);
int             count_path(char *str);
char            *copy_path(char *str, int i);
char            **my_path_to_wordtab(char *str);
char		**exec_cmd(char **path, char **tab, char **env);
void		aff_prompt();
void		my_put_nbr(int nb);
char		**get_path(char **env);
char		*make_path(char *env);
int		find_path(char *s1, char *s2);
char            *my_concat(char *str, char *str2);
char		**concat_path(char **path, char *cmd);
void		my_bzero(char *b, size_t size);
int		my_tablen(char **tab);
char		**my_env(char **env);
char		**catch_builtins(char **cmd, char **env, t_list *list);
int		my_strcmp(char *s1, char *s2);
char            *my_strcpy(char *dest, char *src);
char		**my_setenv(char **env, char *param, t_list *list);
char		**clean_env(char **env, int i);
char		**my_unsetenv(char **env, char *param, t_list *list);
char            *my_strdup(char *src);
void		my_put_error(char *str);
int		my_bcmp(char *str, char *str2);
int		epur_buff(char *buff, int i);
void		my_exit(char *cmd, t_list *list);
void		init_struct(t_list *list);
void            my_showlist(char **tab);
int		my_strcpr(char *str, char *str2);
void		cmd_error(char **tab);
void		catch_ctrl(int sign);
char		**check_cmd(char **cmd, char **env);

int		value_prompt;

#endif
